﻿using DomainModel;
using FluentNHibernate.Mapping;

namespace Repository.NHibernate.Mapping
{
    public class WorkTypeMap : ClassMap<WorkType>
    {
        public WorkTypeMap()
        {
            Id(x => x.Id).GeneratedBy.Native();
            Map(x => x.Name);
            Map(x => x.BallsPersent);
            Map(x => x.ModuleNo);
            References(x => x.Subject);
        }
    }
}